import http from '@/common/interface'
//wxAuth
export function wxAuthLog(data){
	return http.request({
		url: '/login/wxAuth',
		method: 'get', 
		data
	})
}
//微信授权登录
export function wxUserLogin(data){
	return http.request({
		url: '/login/wxUserLogin',
		method: 'post', 
		data
	})
}
//发送验证码
export function sendMsgCode(data){
	return http.request({
		url: '/mobileCode/sendCodeMsg',
		method: 'post', 
		data
	})
}
//reg注册
export function goReg(data){
	return http.request({
		url: '/login/reg',
		method: 'post', 
		data
	})
}
//设置/修改密码
export function upPwd(data){
	return http.request({
		url: '/login/upPassword',
		method: 'put', 
		data
	})
}
//检测unioid来判断用户是否需要绑定手机号码
export function checkUnionId(data){
	return http.request({
		url: '/login/checkUnionId',
		method: 'get', 
		data
	})
}
export function commonLogin(data){
	return http.request({
		url: '/login/commonLogin',
		method: 'post', 
		data
	})
}